import request from '@/utils/request'

// 获取所有系统用户列表
export const queryAllFM = (page, pageSize,title) =>
    request.get('/fm/search', {
        params: {
            page, pageSize,title
        }
    }).then((result)=>result.data);


// 添加
export const addFM = (fm) =>
    request.post('/fm/add', fm).then((result)=>result.data);
// 获取所有系统用户列表
export const updateFM = (fm) =>
    request.put('/fm/update', fm).then((result)=>result.data);

// 删除
export const deleteFM = (ids) =>
    request.put('/fm/delete', ids).then((result)=>result.data);